package com.modules.dao.sys;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.common.mybatis.MyBatisDao;
import com.modules.dto.sys.resp.MenuDtoResp;
import com.modules.dto.sys.resp.MenuEntityResp;
import com.modules.dto.sys.resp.RoleDtoResp;
import com.modules.entity.sys.MenuEntity;
import com.modules.entity.sys.RoleMenuEntity;



/**
 * 菜单接口
 * @author yyq
 *
 */

@MyBatisDao
public interface MenuDao extends BaseMapper<MenuEntity>{

	
	public List<MenuEntityResp> selectTree(@Param(value="rid")Integer rid);
	
	public List<MenuEntityResp> selectTreeAll();

	
	public List<RoleDtoResp> selectMenuRole(@Param(value="mid")Integer mid);
	
	public List<MenuDtoResp> selectRoleMenu(@Param(value="rid")Integer rid);
	
	public int insertRoleMenu(@Param(value="list")List<RoleMenuEntity> list);
	
	public int deleteRoleMenu(@Param(value="model")RoleMenuEntity roleMenu);
	
	
}
